import request from "/@/utils/request"

/**
 * 获取盘点物料
 * @param data
 */
export function getCheckMaterials() {
    return request({
        url: '/wms/material/GetAllMaterials',
        method: 'post'
    })
}
/**
 * 获取盘点单号
 * @param data
 */
export function getMakeUpNos() {
    return request({
        url: '/eletile-mes/wmsCheckstockH/getPageSetForPatchwork',
        method: 'post'
    })
}
/**
 * 获取仓库
 * @param data
 */
export function getWarehouse() {
    return request({
        url: '/wms/warehouse/GetAllWarehouse',
        method: 'post'
    })
}
/**
 * 获取货位
 * @param data
 */
export function getLocations(data?: any) {
    return request({
        url: '/wms/location/GetLocationLists',
        method: 'post',
        data: data
    })
}
/**
 * 打印提交
 * @param data
 */
export function print(data?: any) {
    return request({
        url: '/eletile-mes/wmsCheckstockH/checkStockMakeUp',
        method: 'post',
        data: data
    })
}


/**
 * 获取条码号
 * @param data
 */
export function getBarCode(data) {
    return request({
        url: '/srm/srmAsnD/createdOrderCode/'+data,
        method: 'get',
    })
}